package com.geek.entity;

import java.sql.Date;

public class heroAttribute {
    private Integer attributeId;
    private Integer heroId;
    private Integer starLevel;
    private Integer health;
    private Integer physicalAttack;
    private Integer armor;
    private Integer magicResistance;
    private Integer attackRange;
    private Float attackSpeed;
    private Integer criticalRate;
    private Integer initialMana;
    private Integer maxMana;
    private Date createTime;

    //一对一关联
    private Hero hero;
    public Integer getHeroId() {
        return heroId;
    }

    public void setHeroId(Integer heroId) {
        this.heroId = heroId;
    }

    public heroAttribute() {
    }

    public heroAttribute(Integer attributeId, Integer starLevel, Integer health, Integer physicalAttack, Integer armor, Integer magicResistance, Integer attackRange, Float attackSpeed, Integer criticalRate, Integer initialMana, Integer maxMana, Date createTime, Hero hero) {
        this.attributeId = attributeId;
        this.starLevel = starLevel;
        this.health = health;
        this.physicalAttack = physicalAttack;
        this.armor = armor;
        this.magicResistance = magicResistance;
        this.attackRange = attackRange;
        this.attackSpeed = attackSpeed;
        this.criticalRate = criticalRate;
        this.initialMana = initialMana;
        this.maxMana = maxMana;
        this.createTime = createTime;
        this.hero = hero;
    }

    /**
     * 获取
     * @return attributeId
     */
    public Integer getAttributeId() {
        return attributeId;
    }

    /**
     * 设置
     * @param attributeId
     */
    public void setAttributeId(Integer attributeId) {
        this.attributeId = attributeId;
    }

    /**
     * 获取
     * @return starLevel
     */
    public Integer getStarLevel() {
        return starLevel;
    }

    /**
     * 设置
     * @param starLevel
     */
    public void setStarLevel(Integer starLevel) {
        this.starLevel = starLevel;
    }

    /**
     * 获取
     * @return health
     */
    public Integer getHealth() {
        return health;
    }

    /**
     * 设置
     * @param health
     */
    public void setHealth(Integer health) {
        this.health = health;
    }

    /**
     * 获取
     * @return physicalAttack
     */
    public Integer getPhysicalAttack() {
        return physicalAttack;
    }

    /**
     * 设置
     * @param physicalAttack
     */
    public void setPhysicalAttack(Integer physicalAttack) {
        this.physicalAttack = physicalAttack;
    }

    /**
     * 获取
     * @return armor
     */
    public Integer getArmor() {
        return armor;
    }

    /**
     * 设置
     * @param armor
     */
    public void setArmor(Integer armor) {
        this.armor = armor;
    }

    /**
     * 获取
     * @return magicResistance
     */
    public Integer getMagicResistance() {
        return magicResistance;
    }

    /**
     * 设置
     * @param magicResistance
     */
    public void setMagicResistance(Integer magicResistance) {
        this.magicResistance = magicResistance;
    }

    /**
     * 获取
     * @return attackRange
     */
    public Integer getAttackRange() {
        return attackRange;
    }

    /**
     * 设置
     * @param attackRange
     */
    public void setAttackRange(Integer attackRange) {
        this.attackRange = attackRange;
    }

    /**
     * 获取
     * @return attackSpeed
     */
    public Float getAttackSpeed() {
        return attackSpeed;
    }

    /**
     * 设置
     * @param attackSpeed
     */
    public void setAttackSpeed(Float attackSpeed) {
        this.attackSpeed = attackSpeed;
    }

    /**
     * 获取
     * @return criticalRate
     */
    public Integer getCriticalRate() {
        return criticalRate;
    }

    /**
     * 设置
     * @param criticalRate
     */
    public void setCriticalRate(Integer criticalRate) {
        this.criticalRate = criticalRate;
    }

    /**
     * 获取
     * @return initialMana
     */
    public Integer getInitialMana() {
        return initialMana;
    }

    /**
     * 设置
     * @param initialMana
     */
    public void setInitialMana(Integer initialMana) {
        this.initialMana = initialMana;
    }

    /**
     * 获取
     * @return maxMana
     */
    public Integer getMaxMana() {
        return maxMana;
    }

    /**
     * 设置
     * @param maxMana
     */
    public void setMaxMana(Integer maxMana) {
        this.maxMana = maxMana;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return hero
     */
    public Hero getHero() {
        return hero;
    }

    /**
     * 设置
     * @param hero
     */
    public void setHero(Hero hero) {
        this.hero = hero;
    }

    public String toString() {
        return "heroAttribute{attributeId = " + attributeId + ", starLevel = " + starLevel + ", health = " + health + ", physicalAttack = " + physicalAttack + ", armor = " + armor + ", magicResistance = " + magicResistance + ", attackRange = " + attackRange + ", attackSpeed = " + attackSpeed + ", criticalRate = " + criticalRate + ", initialMana = " + initialMana + ", maxMana = " + maxMana + ", createTime = " + createTime + ", hero = " + hero + "}";
    }
}
